️ Make your <script> lighter and your <style> smarter
️ Make your <script> lighter and your <style> smarter
Make your
lighter and yoursmarter.
Typed Styling API inspired from the tools you already love
const Component = $styled.a({ ...componentStyle })
const className = styled({ ...scopedCss })
css({ ...globalCss })Multi-layers Design Tokens compatible theme configuration
⚡ Plug & play support for any Vite-based framework
Comes with everything you need to build a robust design system
Smart output engine that uses static CSS or CSSOM when you need it
Style colocation
Style composition
Responsive variants API
Theming and local tokens
Runtime theme swapping
Fully modulable, let you disable every feature you do not need but needs no configuration to start
SSR-ready with optimized hydration and no JS/CSS style duplication
✅ 300+ tests covering every core packages and integrations
VSCode extension for DX Sugar
Pinceau v1 is currently in ⚠️ beta, feel free to report any feedback you may have in issues.
Vue
pnpm install @pinceau/vue// vite.config.ts
import Pinceau from '@pinceau/vue/plugin'
export default defineConfig({
plugins: [
Pinceau(),
...yourPlugins
],
})Example: examples/vite-vue/vite.config.ts
Svelte
pnpm install @pinceau/svelte// vite.config.ts
import Pinceau from '@pinceau/svelte/plugin'
export default defineConfig({
plugins: [
Pinceau(),
...yourPlugins
],
})Example: examples/vite-svelte/vite.config.ts
React
pnpm install @pinceau/react// vite.config.ts
import Pinceau from '@pinceau/react/plugin'
export default defineConfig({
plugins: [
Pinceau(),
...yourPlugins
],
})Example: examples/vite-react/vite.config.ts
Use our theme or create yours
Use our default theme, Pigments:
// vite.config.ts
export default defineConfig({
plugins: [
Pinceau({
theme: {
layers: ['@pinceau/pigments']
}
})
]
})Or build your in theme.config.ts:
…Example: examples/theme/theme.config.ts
This package takes a lot of inspiration from these amazing projects:
MIT License © 2022-PRESENT Yaël GUILLOUX
“All you need to paint is a few tools, a little instruction, and a vision in your mind.” • Bob Ross
No open issues yet, or sync has not completed.