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

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'),
  }),

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free