Comments (3)
@zeeeeby your typescriot error is because you're using the wrong types. String instead of numbers
https://play.panda-css.com/CTBahd8-gq?tab=config
from panda.
@zeeeeby your typescriot error is because you're using the wrong types. String instead of numbers https://play.panda-css.com/CTBahd8-gq?tab=config
yes. But if i use the same config in semanticTokens
i dont see typescript errors
from panda.
@zeeeeby, The reason it throws a typescript error is because, the semantic token offsetX/y needs a number not a string.
tokens: {
shadows: {
strong: {
value: {
offsetX: 2,
offsetY: 4,
blur: 16,
spread: 0,
color: "{colors.gray.100/16}",
},
},
},
},
The semantic tokens are a bit challenging to type hence the reason it doesn't throw.
Working on a PR to fix the underlying validation logic
from panda.
Related Issues (20)
- Support for `token(...)` in CSS with `strictTokens` enabled
- Generating CSS using imported modules doesn't work HOT 2
- Allow to define `@font-face` in `panda.config.ts`
- `token:created` does not work with css shorthands
- PandaCSS fails with specific linear gradient CSS HOT 1
- Creating preset now requires name: https://panda-css.com/docs/customization/presets#creating-a-preset
- DEFAULT layerStyles isn't applied HOT 1
- Panda Studio build breaks with pnpm
- Studio build has incorrect paths HOT 2
- Border token with composite value output an extra px if the width is a string containing px HOT 1
- Styles not extracted in a nx monorepo lib HOT 3
- base styles not extracted when used in patterns
- RecipeVariantProps gives undefined in unions due to which storybook doesn't render controls HOT 1
- 'divide' utility doesn't work as expected when used in recipes
- Token not resolved in pseudo elements HOT 2
- Shadows token with color opacity modifier produces incorrect css box-shadow value HOT 1
- Shadows token with color opacity modifier produces incorrect css box-shadow value
- The value will be overwritten if the difference is space and underline HOT 1
- Panda CSS with Astro, example of importing index.css in root component
- Support Updated CSS nesting Syntax HOT 3
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 panda.