New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fylgja/base

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fylgja/base

Base provides a streamlined starting point for any web project. It’s a collection of class-less solutions, allowing you to focus on building your site.

  • 2.0.0-beta.1
  • beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-36.36%
Maintainers
0
Weekly downloads
 
Created
Source

Fylgja Base

Fylgja Base provides a streamlined starting point for any web project. It’s a collection of class-less solutions, allowing you to focus on building your site using plain HTML or your preferred frontend language, without the need to add any additional classes.

If you don't require everything that Fylgja Base offers, you can import only the parts you need. For example, the preflight module provides a solid foundation for typography but excludes styles for forms, buttons, and the HTML dialog element.

Installation

You can install Fylgja Base via npm or other Node-based package managers like pnpm or bun:

npm install @fylgja/base

Alternatively, you can use it directly via a CDN:

<link href="https://cdn.jsdelivr.net/npm/@fylgja/base@2.0/index.min.css" rel="stylesheet">

Usage

Once installed, you can import the full package with:

@import "@fylgja/base";

Alternatively, if you only need specific parts of the base, you can import them individually:

Import PathDescription
@fylgja/base/preflightGlobal defaults, typography and table defaults
@fylgja/base/preflight-scopedGlobal defaults, scoped typography and table defaults
@fylgja/base/btnHTML Button styles + .btn class for links
@fylgja/base/btn-class-onlyJust the .btn class for adding btn styles
@fylgja/base/btn-class-lessJust the HTML Button styles
@fylgja/base/formComprehensive form styles
@fylgja/base/dialogDialog styles, including support for popovers

Theme Styles

By default, Fylgja Base is a clean canvas, meaning no brand colors or additional extras are included. If you prefer to use predefined theme, we offer one as a separate import, or you can copy them directly into your project.

@import "@fylgja/base/theme";

With the brand color theme, we include styles for dark mode, view transitions, primary button styling, and offcanvas support for the dialog.

Essentially class-less

The Fylgja Base uses the .btn class to reduce button size.

Alternative import options are available for those who prefer to avoid this class and want to go full class-less.

Keywords

FAQs

Package last updated on 20 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc