Categories: CSSScriptWeb Design

Responsive Classes CSS Framework – Prime.css

Prime.css is a responsive, classless CSS framework that applies clean, modern styles directly to your standard HTML elements. Based on Primeflex CSS Utility Library.

No need to learn a specific class system like col-md-6 or utility classes like mt-4. You just write semantic HTML (<article>, <nav>, <button>), include the Prime.css stylesheet, and you get a good-looking baseline instantly.

Table of Contents

Toggle

Features:

  • HTML-First Architecture – Works directly with semantic HTML elements
  • Browser-Native Design – Enhances native browser components rather than replacing them
  • Themeable – Extensive CSS variable system for complete customization
  • UI Components – Optional JavaScript-powered interactive elements ike modals, toasts, etc
  • Responsive by Default – Adapts to all screen sizes without additional configuration
  • Clean Interface – Modern, unobtrusive visual design

How to use it:

1. Add the core stylesheet Prime.css to the head section of the document.

<link rel="stylesheet" href="/dist/base/bundle.min.css">
<!-- Optional Theme Stylesheet -->
<link rel="stylesheet" href="/dist/theme/bundle.min.css">

2. Load the OPTIONAL JavaScript for additional UI components.

<!-- OPTIONAL JS For UI Components -->
<script type="module" src="/dist/base/bundle.min.js"></script>

3. Structure your content using standard HTML tags andlet the framework handle the styling:

4. Override the default CSS variables in your own stylesheet to change colors, fonts, border-radius, etc.

:root {
  --text-color: #495057;
  --text-color-secondary: #6c757d;
  --border-radius: 6px;
  --primary-color: #326fd1;
  --primary-color-text: #ffffff;
  --surface-ground: #eff3f8;
  --surface-section: #ffffff;
  --surface-card: #ffffff;
  --surface-overlay: #ffffff;
  --surface-border: #dfe7ef;
  --surface-hover: #f6f9fc;
  --surface-0: #ffffff;
  --surface-50: #FAFAFA;
  --surface-100: #F5F5F5;
  --surface-200: #EEEEEE;
  --surface-300: #E0E0E0;
  --surface-400: #BDBDBD;
  --surface-500: #9E9E9E;
  --surface-600: #757575;
  --surface-700: #616161;
  --surface-800: #424242;
  --surface-900: #212121;
  --blue-50: #f5f9ff;
  --blue-100: #d0e1fd;
  --blue-200: #abc9fb;
  --blue-300: #85b2f9;
  --blue-400: #609af8;
  --blue-500: #3b82f6;
  --blue-600: #326fd1;
  --blue-700: #295bac;
  --blue-800: #204887;
  --blue-900: #183462;
  --green-50: #f4fcf7;
  --green-100: #caf1d8;
  --green-200: #a0e6ba;
  --green-300: #76db9b;
  --green-400: #4cd07d;
  --green-500: #22c55e;
  --green-600: #1da750;
  --green-700: #188a42;
  --green-800: #136c34;
  --green-900: #0e4f26;
  --yellow-50: #fefbf3;
  --yellow-100: #faedc4;
  --yellow-200: #f6de95;
  --yellow-300: #f2d066;
  --yellow-400: #eec137;
  --yellow-500: #eab308;
  --yellow-600: #c79807;
  --yellow-700: #a47d06;
  --yellow-800: #816204;
  --yellow-900: #5e4803;
  --cyan-50: #f3fbfd;
  --cyan-100: #c3edf5;
  --cyan-200: #94e0ed;
  --cyan-300: #65d2e4;
  --cyan-400: #35c4dc;
  --cyan-500: #06b6d4;
  --cyan-600: #059bb4;
  --cyan-700: #047f94;
  --cyan-800: #036475;
  --cyan-900: #024955;
  --pink-50: #fef6fa;
  --pink-100: #fad3e7;
  --pink-200: #f7b0d3;
  --pink-300: #f38ec0;
  --pink-400: #f06bac;
  --pink-500: #ec4899;
  --pink-600: #c93d82;
  --pink-700: #a5326b;
  --pink-800: #822854;
  --pink-900: #5e1d3d;
  --indigo-50: #f7f7fe;
  --indigo-100: #dadafc;
  --indigo-200: #bcbdf9;
  --indigo-300: #9ea0f6;
  --indigo-400: #8183f4;
  --indigo-500: #6366f1;
  --indigo-600: #5457cd;
  --indigo-700: #4547a9;
  --indigo-800: #363885;
  --indigo-900: #282960;
  --teal-50: #f3fbfb;
  --teal-100: #c7eeea;
  --teal-200: #9ae0d9;
  --teal-300: #6dd3c8;
  --teal-400: #41c5b7;
  --teal-500: #14b8a6;
  --teal-600: #119c8d;
  --teal-700: #0e8174;
  --teal-800: #0b655b;
  --teal-900: #084a42;
  --orange-50: #fff8f3;
  --orange-100: #feddc7;
  --orange-200: #fcc39b;
  --orange-300: #fba86f;
  --orange-400: #fa8e42;
  --orange-500: #f97316;
  --orange-600: #d46213;
  --orange-700: #ae510f;
  --orange-800: #893f0c;
  --orange-900: #642e09;
  --bluegray-50: #f7f8f9;
  --bluegray-100: #dadee3;
  --bluegray-200: #bcc3cd;
  --bluegray-300: #9fa9b7;
  --bluegray-400: #818ea1;
  --bluegray-500: #64748b;
  --bluegray-600: #556376;
  --bluegray-700: #465161;
  --bluegray-800: #37404c;
  --bluegray-900: #282e38;
  --purple-50: #fbf7ff;
  --purple-100: #ead6fd;
  --purple-200: #dab6fc;
  --purple-300: #c996fa;
  --purple-400: #b975f9;
  --purple-500: #a855f7;
  --purple-600: #8f48d2;
  --purple-700: #763cad;
  --purple-800: #5c2f88;
  --purple-900: #432263;
  --red-50: #fff5f5;
  --red-100: #ffd0ce;
  --red-200: #ffaca7;
  --red-300: #ff8780;
  --red-400: #ff6259;
  --red-500: #ff3d32;
  --red-600: #d9342b;
  --red-700: #b32b23;
  --red-800: #8c221c;
  --red-900: #661814;
  --primary-50: #f5f9ff;
  --primary-100: #d0e1fd;
  --primary-200: #abc9fb;
  --primary-300: #85b2f9;
  --primary-400: #609af8;
  --primary-500: #3b82f6;
  --primary-600: #326fd1;
  --primary-700: #295bac;
  --primary-800: #204887;
  --primary-900: #183462;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  color-scheme: light;


  /* Set sans-serif & mono fonts */  --sans-font: "Poppins", -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
      "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica,
      "Helvetica Neue", sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;

  /* Line height is set to the "Golden ratio" for optimal legibility */  --line-height: 1.618;

  /* Default (light) theme */  --text: var(--text-color);
  --code: var(--pink-500);
  --marked: var(--yellow-500);
  --disabled: var(--gray-200);
}

5. Modal & dialog component.

<button toggle-modal="#dialog-demo">Open</button>
<dialog id="dialog-demo">
  <h2>Dialog</h2>
  <p>Dialogs are a new HTML5 element that can be used to create modal dialogs or pop-up windows.</p>
  <form method="dialog">
    <button>Close</button>
  </form>
</dialog>

6. Toast & notification component.

<button class="secondary" >

The post Responsive Classes CSS Framework – Prime.css appeared first on CSS Script.

rssfeeds-admin

Share
Published by
rssfeeds-admin

Recent Posts

LPGA’s Mizuho Americas Open Shifts to Mountain Ridge in May With $3.25M Prize Pool

The LPGA Tour will bring the 2026 Mizuho Americas Open to Mountain Ridge Country Club…

3 minutes ago

Nashville-Style Chicken Spot Opens Saturday in Lawrence Township With Free Food

Broadway Hot & Honey Chicken throws open its doors Saturday, March 21, at 11 a.m.…

3 minutes ago

New Jersey Prohibits Front Window Tinting With Hefty Fines

New Jersey bans tint on windshields and front windows. Cars, SUVs, and vans must keep…

3 minutes ago

Swetha and Top.Domains score with Longevity

Swetha and Top.Domains hit the longevity jackpot. Swetha just posted on X that she sold…

10 minutes ago

How do you think a potential buyer first checks if your domain is for sale?

Eric Lyon posted an interesting poll over at Namepros. Sellers thinking about how their buyers…

10 minutes ago

Avelo Airlines Expands Service at Indianapolis International

INDIANAPOLIS, IND. (WOWO)  The post Avelo Airlines Expands Service at Indianapolis International appeared first on…

10 minutes ago

This website uses cookies.