Skip to content

CSS variables file size optimization #15

Open
@petemill

Description

@petemill

What is the size of the variables when compressed and served?

Ideas for reducing size:

  • Don't put -rgb values, only use tailwind theme functions
  • Separate data-theme="xyz" in to additional variable file, e.g. variables-light.css
  • Separate font building-block variables in to typography.css
    • --typography-monospace-small-line-height: 14.4px;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions