Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gyldendal/kobber-base

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gyldendal/kobber-base - npm Package Compare versions

Comparing version 0.3.52 to 0.3.53

2

package.json
{
"name": "@gyldendal/kobber-base",
"version": "0.3.52",
"version": "0.3.53",
"license": "MIT",

@@ -5,0 +5,0 @@ "type": "module",

@@ -19,3 +19,3 @@ # Base

.button {
background-color: var(--kobber-component-button-color-background);
background-color: var(--kobber-component-button-color-background);
}

@@ -28,3 +28,3 @@ ```

.button {
background-color: tokens.$component-button-color-background;
background-color: tokens.$component-button-color-background;
}

@@ -36,3 +36,5 @@ ```

```html
<style>@import "~@gyldendal/kobber-base/themes/default/typography.css";</style>
<style>
@import "~@gyldendal/kobber-base/themes/default/typography.css";
</style>

@@ -58,11 +60,2 @@ <h1 class="kobber-typography-heading-xl">Heading</h1>

## ⚡ Quick how to: update tokens
1. In Figma, make sure "reference mode in variables" is enabled for the design tokens plugin
2. Export json from Figma
3. Replace json in `tokens-from-figma.json`
4. Run `yarn build`
5. Commit changes
## 🧱 Token folder structure

@@ -76,11 +69,13 @@

│ └── token.json
├── build-tokens.ts
├── config.ts
└── tokens-from-figma.json
├── tokens-from-figma/
│ ├── index.ts
│ └── tokens-YYYY-MM-DD.json
├── build.ts
└── buildConfig.ts
```
We use [style-dictionary](https://github.com/amzn/style-dictionary) to transform and format the tokens in `./tokens-from-figma.json`.
Using [style-dictionary](https://github.com/amzn/style-dictionary) to transform and format the tokens from Figma.
In `./config.ts` we decide which formats we want (css, scss, js and more), and in `./build-tokens.ts` we can create formatters and use other utilities to change the output how we want.
The files in `./themes` are auto generated and should never be edited manually.
The files in `./themes` are auto generated and should never be edited manually.
[How to update tokens](./tokens-from-figma/README.md)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc