npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@public-ui/theme-default

v2.1.0

Published

Contains the default theme for KoliBri - The accessible HTML-Standard.

Downloads

877

Readme

Public UI - Default-Theme

This is the default theme for the Public UI web component library. You can customize this theme by using css variables or by creating a new theme.

Integration in React

import { register } from '@public-ui/components';
import { defineCustomElements } from '@public-ui/components/dist/loader';
import { DEFAULT } from '@public-ui/theme-default';

register(DEFAULT, defineCustomElements).then(() => {
	ReactDOM.createRoot(document.getElementById('root')!).render(
		<React.StrictMode>
			<App />
		</React.StrictMode>,
	);
});

Full documentation

👉 https://public-ui.github.io

Usage (DE)

Das Default-Theme ist ein Token-Based Theme, das mit minimalen Anpassungen sofort verwendet werden kann. Es bringt bereits alle notwendigen Stylings mit und kann über Design Tokens, in Form von CSS Custom Properties an das eigene Design angepasst werden.

Variablen

| Variable | Standard-Wert | Bedeutung | | --------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------- | | --kolibri-border-radius | 5px | Border-Radius für abgerundete Elemente | | --kolibri-font-family | BundesSans Web, Calibri, Verdana, Arial, Helvetica, sans-serif | Allgemeine Schriftart | | --kolibri-font-size | 16px | Allgemeine Schriftgröße | | --kolibri-spacing | 0.25rem | Allgemeiner Abstand zwischen Elementen | | --kolibri-border-width | 1px | Allgemeine Rahmen-Breite | | --kolibri-color-primary | #004b76 | Primärfarbe | | --kolibri-color-primary-variant | #0077b6 | Alternative Variante der Primärfarbe | | --kolibri-color-danger | #c0003c | Farbe für Fehlermeldungen und gefährliche Aktionen | | --kolibri-color-warning | #c44931 | Farbe für Warnungen | | --kolibri-color-success | #005c45 | Farbe für Erfolgsmeldungen | | --kolibri-color-subtle | #576164 | Farbe für feine Akzente wie z.B. Rahmen | | --kolibri-color-light | #ffffff | Helle Farbe für z.B. Hintergründe | | --kolibri-color-text | #202020 | Textfarbe | | --kolibri-color-mute | #f2f3f4 | Farbe für deaktivierte Elemente | | --kolibri-color-mute-variant | #bec5c9 | Alternative Farbe für deaktivierte Elemente |

Verwendung

Theme importieren und registrieren:

import { register } from '@public-ui/components';
import { defineCustomElements } from '@public-ui/components/dist/loader';
import { DEFAULT } from '@public-ui/theme-default';

register(DEFAULT, defineCustomElements);

Für mehr Details und weitere Optionen siehe Erste Schritte.

Um die Design Tokens anzupassen, reicht ein einfaches Stylesheet, das die gewünschten Custom Properties überschreibt. Es ist dabei nicht notwendig, alle Properties zu setzen, sondern nur solche, die auch überschrieben werden sollen. Beispiel:

:root {
	--kolibri-border-radius: 3px;
	--kolibri-font-size: 18px;
	--kolibri-spacing: 0.3rem;
	--kolibri-color-primary: #cc006e;
	--kolibri-color-primary-variant: #ff64b9;
}