Resets
CSS Resets for common HTML elements
This page is for demonstarting the styles applied by the
resets
mixin, ifincludeResets
is set totrue
when thesetup
mixin is invoked.
Webcore is an open-source, customizable UI component library for Astro, Svelte, and React projects, styled with Sass. It includes all the commonly used elements that you’d need in any project, such as Button
, Alert
, or Card
components, but it also comes with more advanced elements, to enable you crafting fully functioning new pages by calling component only.
Multiple framework support: Webcore supports Astro, Svelte and React out of the box. This makes it a perfect choice for projects where different tech stack are in use, but the visuals needs to be consistent.
Configurable: All component are created with configurability in mind to help you use Webcore in a wide variety of use cases.
Themeable: CSS is also easily configurable to let you create different themes. Individual components can be themed via CSS variables.
To get started:
- Install Webcore as a dependency by running
npm i webcoreui
. - Create an empty
webcore.config.scss
file at the root of your directory. - Call the
setup
mixin in your global SCSS file.
Start your dev server with:
npm run dev
Other ways to configure CSS
You can use the following options in your setup
mixin to further configure your CSS.
Option | Default value | Purpose |
---|---|---|
includeResets | true | Include reset styles for native HTML elements. |
includeUtilities | true | Adds utility classes for CSS. |
includeTooltip | true | Adds global styles for tooltips. |
includeScrollbarStyles | true | Adds global styles for scrollbars. |
Request improvement for this page