
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Kubas takes design tokens and generates CSS Custom Properties and Utility Classes for them. The output is 2 CSS files, tokens.css
and utilities.css
.
The name is the Lithuanian translation of Cube - CUBE CSS is a term coined by Andy Bell and the idea behind it inspired this tool. He also has a similar tool called Goron which is probably better than this, but I wanted to build something :)
npm install kubas --save
Config can be done in JSON or JS. Create a kubas.json
or kubas.config.js
in your project directory. If you choose JS, it'll need to export an object containing your config.
By default, the outputDir
key is set to dist
, so set this to suit your project.
Your config should contain 2 objects, one to define your tokens
and another to map those tokens to utilities
. In the example below, we color tokens, which are mapped to c-*
utility classes, which will set color
to each of the available color tokens.
module.exports = {
outputDir: 'src/css',
tokens: {
color: {
black: '#000',
white: '#fff',
},
},
utilities: {
color: {
c: 'color',
},
},
};
There's no support for breakpoints at the moment and I don't know if there ever will be. That sorta defeats the idea of the simplistic nature of CUBE CSS.
Run Kubas from your command line. To use the kubas
alias, you'll need to install Kubas globally. (npm install kubas -g
)
kubas
FAQs
A design token and utility class generator
The npm package kubas receives a total of 0 weekly downloads. As such, kubas popularity was classified as not popular.
We found that kubas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.