Skip to content

[Feature Request] Split up the global style into required and opt in styling. #20100

Open
@jellehak

Description

@jellehak

Problem to solve

Current vuetify global css includes a lot of optional selectors which in most use cases aren't used at all. It would be nice to opt in for these functionalities and keep this dry (and reduce bundle size).

Proposed solution

Split up the 'vuetify/styles' into smaller chunks like e.g.:

  • 'helpers.css' (paddings, margins, overflow, flex, text helpers, around 279 kB)
  • 'colors.css' (colors around 40 kB)
  • 'ress.css'
  • 'components.css' (this is one is a bit weird as the components already load its own style)

To be non breaking you can add the 'bare' essentials with someting like

import 'vuetify/core'

And opt in for the colors or helpers with

import 'vuetify/helpers' 
import 'vuetify/colors' 

Metadata

Metadata

Assignees

Labels

T: enhancementFunctionality that enhances existing featuressass

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions