Comments (4)
also see https://github.com/unocss/unocss/blob/main/packages/preset-wind/src/theme.ts for more examples.
from unocss.
The representation of objects is more intuitive, comfortable, easy to write
from unocss.
If you want the keyframes on separate lines you could do something like
wiggle: `{
0%, 100% {transform: rotate(-3deg)}
50% {transform: rotate(3deg)}
}`,
I could see objects being useful if we could have something like
animation: {
pulse: {
keyframes: '{0%, 100% {opacity:1} 50% {opacity:.5}}',
durations: '2s',
timingFns: 'cubic-bezier(0.4,0,.6,1)',
counts: 'infinite',
}
}
but I don't really see the benefit of the Tailwind notation.
from unocss.
You can try to use this way in unocss-preset-useful
.
from unocss.
Related Issues (20)
- Add `important` option to `preset-wind` as it's supported in tailwind HOT 5
- Implement @container directive similar to @screen
- Nuxt 3.9.0 "hidden" attribute not working as expected HOT 6
- [vscode extenstion] reset theme don't show colors in vscode HOT 1
- PostCSS Plugin HOT 1
- Not clear why `class=` is not needed in the playground HOT 4
- UnoCSS Dist-chunk mode in Astro
- VSCode Extension - When a prefix is used, the IntelliSense is not work HOT 2
- Incorrect grid-template-columns syntax HOT 3
- Enables the `content` field of the preset. HOT 1
- vite5 build error in jenkins(@unocss/vite/dist/index.cjs:110:5 )
- Add rule: `enforce-class-compile` to eslint-plugin
- Add JSX support for rule `@unocss/order-attributify` in `@unocss/eslint-plugin`
- `bundler usage` of `@unocss/runtime` not working HOT 2
- Not generate source map in shadow-dom mode HOT 1
- Unocss cannot be used in Vue3 version shadow dom
- UnoCSS() typescript import error when using "moduleResolution": "NodeNext" in SvelteKit Package HOT 4
- Unocss seems to extractor the content from node_modules by default HOT 1
- shadow: inset can't parsed HOT 1
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 unocss.