Home / Function/ default.translate() — tailwindcss Function Reference

default.translate() — tailwindcss Function Reference

Architecture documentation for the default.translate() function in default-theme.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  ca344c94_69ff_d963_86ff_aa6795beefa7["default.translate()"]
  1b5321a5_0fcc_2351_1f22_0d4bed4c097e["default-theme.ts"]
  ca344c94_69ff_d963_86ff_aa6795beefa7 -->|defined in| 1b5321a5_0fcc_2351_1f22_0d4bed4c097e
  style ca344c94_69ff_d963_86ff_aa6795beefa7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/compat/default-theme.ts lines 1036–1045

  translate: ({ theme }) => ({
    '1/2': '50%',
    '1/3': '33.333333%',
    '2/3': '66.666667%',
    '1/4': '25%',
    '2/4': '50%',
    '3/4': '75%',
    full: '100%',
    ...theme('spacing'),
  }),

Domain

Subdomains

Frequently Asked Questions

What does default.translate() do?
default.translate() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/default-theme.ts.
Where is default.translate() defined?
default.translate() is defined in packages/tailwindcss/src/compat/default-theme.ts at line 1036.

Analyze Your Own Codebase

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

Try Supermodel Free