Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoxShadow Object Object #100

Open
Marwaxhello opened this issue Jun 5, 2024 · 0 comments
Open

BoxShadow Object Object #100

Marwaxhello opened this issue Jun 5, 2024 · 0 comments

Comments

@Marwaxhello
Copy link
Collaborator

Het gebruiken van het boxshadow tokens werkt niet en zegt gdat het een OBJECT OBJECT in staat.

in de figma.tokens.Json bestand staat het nu zo:

  "box-shadow": {
        "sm": {
          "value": {
            "x": "0",
            "y": "2",
            "blur": "6",
            "spread": "0",
            "color": "{frameless.color.gray.90}",
            "type": "dropShadow"
          },
          "type": "boxShadow"
        },
        "md": {
          "value": {
            "x": "0",
            "y": "8",
            "blur": "16",
            "spread": "0",
            "color": "{frameless.color.gray.90}",
            "type": "dropShadow"
          },
          "type": "boxShadow"
        },
        "lg": {
          "value": {
            "x": "0",
            "y": "16",
            "blur": "48",
            "spread": "0",
            "color": "{frameless.color.gray.90}",
            "type": "dropShadow"
          },
          "type": "boxShadow"
        }

Zo heb ik hem opgeroept in mijn components/card

"components/card": {
    "frameless": {
      "card": {
        "box-shadow": { "value": "{frameless.box-shadow.lg}" },
      }
    }
  },

En zo uiteindelijk in mijn scss bestand
box-shadow: var(--frameless-card-box-shadow-lg);
Hij is wel defined maar blijkt dat hij de styling van de shadow niet pakt staat in de inspector.

@Marwaxhello Marwaxhello mentioned this issue Jun 10, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant