All Projects → team-video → Knopf.css

team-video / Knopf.css

Licence: mit
Modern, modular, extensible button system designed for both rapid prototyping and production-ready applications

Projects that are alternatives of or similar to Knopf.css

steller-css
⛰️ A utility-first CSS framework that serves as the foundation of your design system
Stars: ✭ 14 (-92.59%)
Mutual labels:  css-framework, design-system
pollen
The CSS variables build system
Stars: ✭ 754 (+298.94%)
Mutual labels:  css-framework, design-system
kahi-ui
Straight-forward Svelte UI for the Web
Stars: ✭ 169 (-10.58%)
Mutual labels:  css-framework, design-system
neptune-web
Wise Web Design System
Stars: ✭ 55 (-70.9%)
Mutual labels:  css-framework, design-system
assembler
A modern UI framework
Stars: ✭ 171 (-9.52%)
Mutual labels:  css-framework, design-system
Ivory
A modern CSS framework for developing powerful web interfaces faster and easier.
Stars: ✭ 61 (-67.72%)
Mutual labels:  css-framework, design-system
Daisyui
⭐️ ⭐️ ⭐️ ⭐️ ⭐️  Tailwind Components
Stars: ✭ 382 (+102.12%)
Mutual labels:  css-framework, design-system
Minna Ui
😸 A fast, friendly, and fun web UI kit for everyone.
Stars: ✭ 86 (-54.5%)
Mutual labels:  css-framework, design-system
Rucksack
A little bag of CSS superpowers, built on PostCSS
Stars: ✭ 1,861 (+884.66%)
Mutual labels:  css-framework
Ui Components
Most used UI Components — of web applications. Curated/Most loved components for web development
Stars: ✭ 175 (-7.41%)
Mutual labels:  css-framework
Flexible Grid
Flexible grid layouts to get you familiar with building within the flexible grid system.(HTML, CSS, SASS, SCSS)
Stars: ✭ 154 (-18.52%)
Mutual labels:  css-framework
Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+1028.57%)
Mutual labels:  design-system
Framework
🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
Stars: ✭ 176 (-6.88%)
Mutual labels:  design-system
Shine Design
为开发者、设计师和产品经理准备的 UI 设计语言
Stars: ✭ 157 (-16.93%)
Mutual labels:  design-system
Bootswatch
Themes for Bootstrap
Stars: ✭ 13,309 (+6941.8%)
Mutual labels:  css-framework
Lit
World's smallest responsive 🔥 css framework (395 bytes)
Stars: ✭ 1,866 (+887.3%)
Mutual labels:  css-framework
Frow
Flexbox Toolkit & Grid
Stars: ✭ 152 (-19.58%)
Mutual labels:  css-framework
Expo Uber
Uber UI Clone with React Native & Expo
Stars: ✭ 186 (-1.59%)
Mutual labels:  design-system
Bolt
The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Stars: ✭ 186 (-1.59%)
Mutual labels:  design-system
Carbon Web Components
Carbon Design System variant on top of Web Components
Stars: ✭ 171 (-9.52%)
Mutual labels:  design-system

knopf.css

Modern, modular, extensible button system designed for both rapid prototyping and production-ready applications.

Made by the folks at Frameable

Installation

Just download and include the minified stylesheet on your website.

<link rel="stylesheet" href="/knopf.min.css">

You could also link to a CDN hosted file.

<link rel="stylesheet" href="https://unpkg.com/knopf.css/knopf.min.css">

Otherwise, you can use your favorite package manager to install it as a dependency.

Install with npm

npm install knopf.css

Install with yarn

yarn add knopf.css

And then import it wherever you are importing your styles.

import 'knopf.css'

Usage

By including knopf you get a bunch of goodies out of the box; however, you should probably customize the styles to meet your design needs, and there are multiple ways of doing just that.

Override default values

All of the base values can be changed by overriding the custom properties at root:

:root {
  --knopf-hue: 164;
  --knopf-saturation: 88%;
  --knopf-luminosity: 28%;
}
<button class="knopf">
  Button
</button>

Extend via modifier

You can also create your own class that sets new values for a particular instance:

.negative {
  --knopf-hue: 356;
  --knopf-saturation: 57%;
  --knopf-luminosity: 51%;
}
<button class="knopf negative">
  Button
</button>

Leverage the cascade

As with any CSS library, you can override the base class to make it your own. This aproach still lets you take advantage of the existing properties, variables and modifiers.

.knopf.knopf {
  --knopf-raised-height: 6px;
  border-block-end-color: hsl(var(--knopf-hover-background-color));
  border-block-end-width: var(--knopf-raised-height);
  margin-block-start: calc(var(--knopf-raised-height) * -1);
}

.knopf.knopf:hover {
  --knopf-raised-height: 2px;
  border-block-end-color: hsl(var(--knopf-active-background-color));
}
<button class="knopf large wide pill">
  Button
</button>

The same logic is applicable to all of the built-in modifiers, try out the playground to check them out.

I would also suggest taking a look at the source code for the full list of customizable custom properties.

You can see the full test suite on this pen.

Contributing

Please read the contribution guidelines in order to make the contribution process easy and effective for everyone involved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].