Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(CSS): remove the massive wall of empty CSS properties added by Tailwind CSS #913

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @dgonzalezr @endv-bogdanb @Cata1989

# Any change related to the .github workflows
# will require approval from @dgonzalezr.
.github/ @dgonzalezr
.github/ @dgonzalezr @endv-bogdanb

# Any change related to the NPM dependencies
# will require approval from @dgonzalezr @endv-bogdanb.
Expand All @@ -10,4 +16,4 @@ package-lock.json @dgonzalezr @endv-bogdanb

# Any change inside the `/packages` directory
# will require approval from @dgonzalezr @endv-bogdanb.
/packages @dgonzalezr @endv-bogdanb
/packages @dgonzalezr @endv-bogdanb @Cata1989
26 changes: 26 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,33 @@ export default {
textColor: ['active', 'disabled'],
},
},
variantOrder: [
'first',
'last',
'odd',
'even',
'visited',
'checked',
'empty',
'read-only',
'group-hover',
'group-focus',
'focus-within',
'hover',
'focus',
'focus-visible',
'active',
'disabled'
],
corePlugins: {
preflight: false,
// Disables usage of rgb/opacity
textOpacity: false,
backgroundOpacity: false,
borderOpacity: false
},
experimental: {
// Prevents Tailwind from generating that wall of empty custom properties
optimizeUniversalDefaults: true,
},
} satisfies Config;