Safelist with custom class #8532
Unanswered
fovea-group
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello at all,
similar discussions exist, but nothing give us a succeseful response.
We have a problem about safelist tailwind. We made a Blazor template based on tailwind. Now, we have defined custom class for color (primary, secondary, danger etc etc). The reason for this was that we wanted make a theme indipendent about color concept.
The problem is that this custom class cannot be parsing from tawildind if you reference code as external library.
So, we wanted use SafeList and give documentation about class to add a safelist. But seems that safelist not work with custom class:
module.exports = { content: ..., safelist: [ 'border-danger-300', 'border-[success]-300' ], theme: { extend: { colors: { 'primary': ..., 'secondary': ..., 'danger': ..., 'success': ..., 'warning': ... } }, }, plugins: ... };
We not be enable to create custom class. Why???
UPDATE:
Or if someone has some idea to create an theme customizzable without possibility to scanned with tailwind. We want create a generic theme that define behaviour and layout but with color, border (and other minimal UI experience) customizzable
UPDATE:
I resolved problem. The problem was that we insert "border-danger-300" but the correct class was "border-danger-LIGHT-300".
Beta Was this translation helpful? Give feedback.
All reactions