Git Product home page Git Product logo

kladenets's Introduction

Kladenets (aka. Root Variables)

Test & Build npm version Chromatic visual testing Online Storybook

Minimal, future-proof native CSS variables (CSS Custom Properties) framework in :root designed with the following features:

  • Minimal variables defined: colors, typography, and layout helpers.
  • HSL colors: all colors are HSL-based for more straightforward manipulation (before we have CSS Color Module Level 4 in hands).
  • Easy to migrate: no magic variables for flex, or grid layout. You can continue to use your existing layout system.
  • Flexible to extend: all variables can be overridden later in :root or in specific scopes.
  • Dark mode ready: extend your existing app with prefers-color-scheme: dark, tweak colors with HSL, and you're ready to go.

Installation

unpkg

<!-- Stable -->
<link rel="stylesheet" href="https://unpkg.com/kladenets">

<!-- Latest -->
<link rel="stylesheet" href="https://unpkg.com/kladenets@next">

jsDelivr

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kladenets/kladenets.css">

Package Manager

pnpm add kladenets
yarn add kladenets
npm i -S kladenets

Usage

Direct CSS

See app.css for example.

Import node_modules in Webpack

@import '~kladenets';

body {
  color: var(--text-color);
}

Import in JavaScript

import 'kladenets'

// styled-components example
const Component = styled.div`
  color: var(--text-color);
`

License

MIT

kladenets's People

Contributors

dependabot[bot] avatar hacknug avatar renovate-bot avatar sparanoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hacknug coodyboy

kladenets's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency npm-run-all with npm-run-all2 ^5.0.0
  • chore(deps): update dependency chromatic to v5.10.2
  • chore(deps): update dependency nodemon to v2.0.22
  • chore(deps): update dependency @babel/core to v7.24.4
  • chore(deps): update dependency babel-loader to v8.3.0
  • chore(deps): update dependency sass to v1.75.0
  • chore(deps): update storybook monorepo to v6.5.16 (@storybook/addon-actions, @storybook/addon-essentials, @storybook/addon-links, @storybook/html)
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update chromaui/action action to v11
  • chore(deps): update dependency chromatic to v11
  • fix(deps): update docusaurus monorepo to v3 (major) (@docusaurus/core, @docusaurus/preset-classic)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/chromatic.yml
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
  • actions/cache v3
  • chromaui/action v1
.github/workflows/test.yml
  • actions/checkout v3
  • actions/setup-node v3
  • pnpm/action-setup v2
  • actions/cache v3
npm
package.json
packages/core/package.json
  • @babel/core ^7.14.6
  • @storybook/addon-actions ^6.3.4
  • @storybook/addon-essentials ^6.3.4
  • @storybook/addon-links ^6.3.4
  • @storybook/html ^6.3.4
  • babel-loader ^8.2.2
  • chromatic ^5.10.0-canary.0
  • nodemon ^2.0.9
  • npm-run-all ^4.1.5
  • sass ^1.37.0
site/package.json
  • @docusaurus/core 2.0.0-beta.88de3a510
  • @docusaurus/preset-classic 2.0.0-beta.88de3a510
  • @mdx-js/react ^1.6.21
  • @svgr/webpack ^5.5.0
  • clsx ^1.1.1
  • file-loader ^6.2.0
  • prism-react-renderer ^1.2.1
  • react ^17.0.1
  • react-dom ^17.0.1
  • url-loader ^4.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.