Comments (1)
Nuxt UI already creates a primary
color with CSS variables so you can change it at runtime with your app.config.ts
, this means you can't name your color primary
in your tailwind.config.ts
. You need to rename it to whatever you want, like mycolor
and then use this color as:
export default defineAppConfig({
ui: {
primary: 'mycolor',
gray: 'cool',
},
})
You can read more about this here: https://ui.nuxt.com/getting-started/theming#colors
from ui.
Related Issues (20)
- How to pass ui props to UCard? HOT 2
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 1
- Accordion `items` type does not allow custom content HOT 1
- Setting color prop dynamically causes issues HOT 3
- after build “Cannot find module shiki” I use the template of "https://github.com/nuxt-ui-pro/saas.git" in Nuxt UI Pro HOT 2
- Strip all dark mode classes HOT 2
- [Edge] SelectMenu: returns no results when using lazy search with custom #option slot HOT 1
- Add "to" and "href" props to Avatar component HOT 2
- input menu: show options when the input field was clicked HOT 2
- USelectMenu Label slot currently selected item with value-attribute
- Star rating HOT 4
- Tailwind classes from other folders than components are not picked up HOT 8
- Variant and Color options not working for Theme Configuration HOT 6
- Command palette close button event propagation stop missing HOT 2
- [UForm] How to add validation to custom input HOT 3
- [UForm] How can i access to submitter?
- Components prefix stopped working in v2.18.0 HOT 15
- Tailwind colors with CSS variables results in broken primary/gray palette HOT 2
- [Bug] Select/SelectMenu popper open when clicking #trailing
- UForm Backend Validation doesn't work with zod server validation error handling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.