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 🙏

© 2026 – Pkg Stats / Ryan Hefner

semantic-element

v0.2.14

Published

A semantic CSS framework that styles native HTML elements

Readme

Semantic Element

Semantic Element is a semantic CSS framework that styles native HTML elements.

Installation

npm

npm install semantic-element

yarn

yarn add semantic-element

pnpm

pnpm add semantic-element

Usage

Using compiled CSS

@import 'semantic-element/css';

Or link directly in HTML:

<link rel="stylesheet" href="node_modules/semantic-element/dist/semantic-element.css" />

Using SCSS

@import 'semantic-element/scss';

You can also import individual components:

// Core
@import 'semantic-element/scss/variables';
@import 'semantic-element/scss/mixins';
@import 'semantic-element/scss/normalize';
@import 'semantic-element/scss/scaffolding';
@import 'semantic-element/scss/typography';

// Components
@import 'semantic-element/scss/buttons';
@import 'semantic-element/scss/grid';
@import 'semantic-element/scss/navbar';
@import 'semantic-element/scss/forms';
@import 'semantic-element/scss/tables';
@import 'semantic-element/scss/dialog';
@import 'semantic-element/scss/alerts';
@import 'semantic-element/scss/panels';
@import 'semantic-element/scss/tabs';
@import 'semantic-element/scss/pagination';
@import 'semantic-element/scss/tooltips';

With bundlers (Vite, Webpack, etc.)

// Vite
import 'semantic-element/css'

// Or with SCSS
@import 'semantic-element/scss'

Documentation

Components

CSS Components

  • Reset - CSS normalize and reset
  • Typography - Headings, paragraphs, lists, code
  • Grid - Responsive grid system (2-12 columns)
  • Buttons - Various button styles and sizes
  • Forms - Styled form elements
  • Tables - Clean table styles
  • Navbar - Navigation bar component
  • Sidebar - Sidebar component
  • Dialog - Dialog component using native HTML dialog element
  • Alerts - Alert and message styles
  • Panels - Panel/card component
  • Tabs - Tab navigation
  • Pagination - Pagination component
  • Progress - Progress bars
  • Tooltips - Tooltip styles
  • Labels - Label badges
  • Breadcrumbs - Breadcrumb navigation
  • Lists - Styled lists
  • Callouts - Callout boxes
  • Timeline - Timeline component
  • Media - Media object

Customization

SCSS Variables

Override variables before importing:

$primary-color: #3498db;
$secondary-color: #2ecc71;
$font-size-base: 16px;

@import 'semantic-element/scss';

Available Variables

// Colors
$primary-color
$secondary-color
$success-color
$info-color
$warning-color
$danger-color

// Typography
$font-family-base
$font-size-base
$line-height-base

// Grid
$grid-columns
$grid-gutter-width

// And many more...

Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

# Build documentation site
npm run build:site

# Preview production build
npm run preview:site

Development Workflow

When working on the CSS framework:

  1. Modify SCSS files in scss/
  2. Run npm run build to build changes
  3. View changes at http://localhost:4321

Class Naming Reference

Semantic Element uses semantic class naming:

| Component | Class Name | | --------- | --------------------------------------------- | | Buttons | .button, .button primary, .button large | | Grid | .grid, .grid two/three/four, .column | | Forms | .field, form.inline | | Tables | table.striped, table.bordered | | Panels | .panel, .panel .body, .panel .heading | | Alerts | .alert, .alert success | | Progress | .progress, .progress .bar | | Tabs | .tabs | | Navbar | .navbar, .navbar .menu | | Labels | .label, .label primary |

Browser Support

Modern browsers including Chrome, Firefox, Safari, and Edge.

Contributing

  1. Fork it (https://github.com/miclle/semantic-element/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright and License

Code and documentation copyright 2014-2025 Miclle. Code released under the MIT license.