Inline plugin global styles
See original GitHub issueSo since the current approach to declaring global styles seems to be best accomplished through preflight, it would be nice to provide some kind of merging strategy for common selector keys as to avoid this sort of code…
preflight: ({ html, ...preflight }, { theme }) => ({
...preflight,
html: {
color: theme('colors.gray.900'),
...html,
},
})
Otherwise, I think there should be some discussion about ways to declare global styles.
Regarding this new (:global)[https://github.com/tw-in-js/twind/blob/main/docs/plugins.md#inject-global-styles] property, is it at all possible to declare global styles from within inline plugins? That would be a nifty way to allow declaration of global styles from virtually anywhere in your app.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Remove global-styles-inline-css - WordPress.org
I've just updated a site which doesn't use Gutenberg to 5.9 and a huge block of styling has appeared at the top of...
Read more >How to remove global inline styles in WordPress - Perfmatters
It's always recommended to click around your site after enabling it to confirm everything looks good visually. Step 1. Click into the Perfmatters...
Read more >How to Disable Global Styles Inline CSS in WordPress
... for beginners you will learn how to disable global inline styles css in wordpress by adding code in functions.php or plugin in...
Read more >How to display inline, floating, and follow buttons ... - Novashare
Follow the steps below to enable global styles. Step 1. Click into the Novashare plugin settings. Novashare plugin ...
Read more >Global Styles & theme.json - Full Site Editing
Global Styles help users change the style of their site without having to edit individual blocks or pages. It also lowers the entry...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Done
@tylerforesthauser This issue has two topics. Using tw.apply in
:global
and in preflight should now be fixed in #83 . Preflight merging should be a new issue discussing its impact. Could you please create one only for merging preflight styles.