
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
semantic-element
Advanced tools
Semantic Element is a semantic CSS framework that styles native HTML elements.
npm install semantic-element
yarn add semantic-element
pnpm add semantic-element
@import 'semantic-element/css';
Or link directly in HTML:
<link rel="stylesheet" href="node_modules/semantic-element/dist/semantic-element.css" />
@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';
// Vite
import 'semantic-element/css'
// Or with SCSS
@import 'semantic-element/scss'
Override variables before importing:
$primary-color: #3498db;
$secondary-color: #2ecc71;
$font-size-base: 16px;
@import 'semantic-element/scss';
// 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...
# 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
When working on the CSS framework:
scss/npm run build to build changeshttp://localhost:4321Semantic 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 |
Modern browsers including Chrome, Firefox, Safari, and Edge.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Code and documentation copyright 2014-2025 Miclle. Code released under the MIT license.
FAQs
A semantic CSS framework that styles native HTML elements
We found that semantic-element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.