Home / Function/ loadDesignSystem() — tailwindcss Function Reference

loadDesignSystem() — tailwindcss Function Reference

Architecture documentation for the loadDesignSystem() function in intellisense.bench.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  56e002cc_409f_bdfa_c573_fa69116d8c75["loadDesignSystem()"]
  8cb4c4a2_034a_b602_e465_a3900bfecd6a["intellisense.bench.ts"]
  56e002cc_409f_bdfa_c573_fa69116d8c75 -->|defined in| 8cb4c4a2_034a_b602_e465_a3900bfecd6a
  e7db6358_7af5_e4b2_792d_749691a304cc["add()"]
  56e002cc_409f_bdfa_c573_fa69116d8c75 -->|calls| e7db6358_7af5_e4b2_792d_749691a304cc
  e557c8a4_bb27_ee44_c462_9e238157ad04["buildDesignSystem()"]
  56e002cc_409f_bdfa_c573_fa69116d8c75 -->|calls| e557c8a4_bb27_ee44_c462_9e238157ad04
  style 56e002cc_409f_bdfa_c573_fa69116d8c75 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/intellisense.bench.ts lines 5–22

function loadDesignSystem() {
  let theme = new Theme()
  theme.add('--spacing-0_5', '0.125rem')
  theme.add('--spacing-1', '0.25rem')
  theme.add('--spacing-3', '0.75rem')
  theme.add('--spacing-4', '1rem')
  theme.add('--width-4', '1rem')
  theme.add('--colors-red-500', 'red')
  theme.add('--colors-blue-500', 'blue')
  theme.add('--breakpoint-sm', '640px')
  theme.add('--font-size-xs', '0.75rem')
  theme.add('--font-size-xs--line-height', '1rem')
  theme.add('--perspective-dramatic', '100px')
  theme.add('--perspective-normal', '500px')
  theme.add('--opacity-background', '0.3')

  return buildDesignSystem(theme)
}

Domain

Subdomains

Frequently Asked Questions

What does loadDesignSystem() do?
loadDesignSystem() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/intellisense.bench.ts.
Where is loadDesignSystem() defined?
loadDesignSystem() is defined in packages/tailwindcss/src/intellisense.bench.ts at line 5.
What does loadDesignSystem() call?
loadDesignSystem() calls 2 function(s): add, buildDesignSystem.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free