An open API service indexing awesome lists of open source software.

https://github.com/codedgar/creo

CSS-first frontend framework for modern, accessible, and performance-focused websites.
https://github.com/codedgar/creo

Last synced: about 1 month ago
JSON representation

CSS-first frontend framework for modern, accessible, and performance-focused websites.

Awesome Lists containing this project

README

          

# Creo ยท @creo-framework/creo

> A CSS-first frontend framework for structured, accessible, and aesthetic websites.

---

### โš ๏ธ Status: Work in Progress

This is an **early-stage, experimental version** of Creo.
It's being built in the open to allow for feedback and contribution, but **not ready for production use** just yet.

You are welcome to explore, fork, and follow development, but please expect breaking changes, incomplete components, and undocumented behavior for now.

---

## ๐ŸŽฏ Why Creo?

Tired of utility-heavy markup that looks like this?
```html


```

**Creo** focuses on semantic structure with clear, purposeful classes:
```html


Your Amazing Product


Build faster, ship smarter



```

**Design-forward structure, with developer-grade control.**

Perfect for marketing pages, landing sites, portfolios, product pages, and SaaS homepages, where visual hierarchy, responsive structure, accessibility, and speed matter.

*Not intended for complex web apps, admin dashboards, or internal tools.*

---

## ๐Ÿš€ Quick Start

### Installation
```bash
# Via npm
npm install @creo-framework/creo

# Via CDN

```

### Hello World
```html



Welcome to Creo


CSS-first framework for modern websites




```

### Customization with Design Tokens
```scss
// Override design tokens
@use '@creo-framework/creo' with (
$creo-colors: (
primary: #your-brand-color,
accent: #60a5fa,
neutral: #e5e7eb,
),
$creo-spacing: (
xs: 0.25rem,
sm: 0.5rem,
md: 1rem,
lg: 2rem,
)
);
```

---

## ๐Ÿงฉ Architecture & Philosophy

### 1. Structure First
Websites should be structured and designed before they are styled or animated. Creo enforces clarity of intent in markup, spacing, and layout hierarchy.

### 2. Progressive by Default
Creo defaults to modern standards: Responsive typography, accessibility best practices, and clean design tokens. Interactive features are optional and additive.

### 3. Modular, Not Monolithic
Import only what you need. Creo ships as a modular Sass codebase to prevent CSS bloat and enable tree-shaking.

### 4. BEM-lite Naming Convention
- **Components:** `.c-button`, `.c-hero`, `.c-card`
- **Layout:** `.l-grid`, `.l-section`, `.l-container`
- **Utilities:** `.u-text-center`, `.u-mb-lg`, `.u-px-sm`

---

## ๐Ÿ“ฆ What's Included

### Core CSS Framework
- **Layout primitives:** Grid system, containers, sections with accessible defaults
- **Component library:** Buttons, navigation, heroes, cards, forms
- **Design tokens:** Consistent spacing, typography, and color scales
- **Utility classes:** Spacing, text alignment, responsive helpers
- **Theme support:** Dark mode and custom theme capabilities
- **Two builds:** Full version or lean version for minimal CSS

### Optional JavaScript Layer
**@creo/interact** provides lightweight helpers for:
- Modals and dropdowns
- Accordions and toggles
- Form validation highlights
- Menu interactions

Designed to work cleanly with Alpine.js, htmx, and Stimulus.

---

## ๐Ÿ“ Project Structure

```plaintext
.
โ”œโ”€โ”€ scss/ # Core source files
โ”‚ โ”œโ”€โ”€ core/ # Reset, typography, tokens
โ”‚ โ”‚ โ”œโ”€โ”€ _reset.scss
โ”‚ โ”‚ โ”œโ”€โ”€ _tokens.scss
โ”‚ โ”‚ โ””โ”€โ”€ _typography.scss
โ”‚ โ”œโ”€โ”€ layout/ # Grid, sections, containers
โ”‚ โ”‚ โ”œโ”€โ”€ _grid.scss
โ”‚ โ”‚ โ”œโ”€โ”€ _sections.scss
โ”‚ โ”‚ โ””โ”€โ”€ _containers.scss
โ”‚ โ”œโ”€โ”€ components/ # Buttons, nav, hero, etc.
โ”‚ โ”‚ โ”œโ”€โ”€ _button.scss
โ”‚ โ”‚ โ”œโ”€โ”€ _hero.scss
โ”‚ โ”‚ โ””โ”€โ”€ _card.scss
โ”‚ โ”œโ”€โ”€ utilities/ # Spacing, text, responsiveness
โ”‚ โ”‚ โ”œโ”€โ”€ _spacing.scss
โ”‚ โ”‚ โ”œโ”€โ”€ _text.scss
โ”‚ โ”‚ โ””โ”€โ”€ _responsive.scss
โ”‚ โ”œโ”€โ”€ themes/ # Optional themes
โ”‚ โ”‚ โ””โ”€โ”€ _dark.scss
โ”‚ โ”œโ”€โ”€ creo.scss # Full version (includes all)
โ”‚ โ””โ”€โ”€ creo.lean.scss # Lean version (core + layout)
โ”‚
โ”œโ”€โ”€ dist/ # Compiled CSS outputs
โ”‚ โ”œโ”€โ”€ creo.css / .min.css
โ”‚ โ”œโ”€โ”€ creo.lean.css / .min.css
โ”‚ โ””โ”€โ”€ source maps
โ”‚
โ”œโ”€โ”€ apps/docs/ # Documentation site (Astro + Creo)
โ”œโ”€โ”€ build.js # Custom build script
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ package.json
```

---

## ๐ŸŽฏ Use Cases

| Use Case | Recommend Creo? |
|----------|----------------|
| Portfolio site | โœ… Yes |
| SaaS marketing homepage | โœ… Yes |
| Product landing page | โœ… Yes |
| Agency/creative site | โœ… Yes |
| Personal blog | โœ… Yes |
| Admin dashboard | โŒ No |
| Internal tool UI | โŒ No |
| Complex web app | โŒ No |

---

## ๐ŸŒ Browser Support

- **Modern browsers:** Last 2 versions, >1% usage
- **IE11:** Not supported (uses CSS custom properties extensively)
- **Mobile:** Full support for iOS Safari and Chrome Android

---

## โ™ฟ SEO & Accessibility

Creo is semantic by default with:
- Proper ``, ``, ``, `` structures
- `

`โ€“`

` hierarchy rules
- WCAG-compliant color contrast
- Landmarks and skip links in starter templates
- Visually hidden but accessible labels

---

## ๐Ÿ”ง Development

```bash
# Clone and install
git clone https://github.com/codedgar/creo.git
cd creo
npm install

# Build CSS
npm run build

# Watch for changes
npm run dev

# Build all versions
npm run build:all
```

---

## ๐Ÿ“– Documentation

- **[Getting Started Guide](https://creo-framework.dev/docs)** (Work in Progress)
- **[Component Library](https://creo-framework.dev/components)**
- **[Design Tokens Reference](https://creo-framework.dev/tokens)**

---

## ๐Ÿค Contributing

We're building Creo in the open and welcome contributions! Since this is early-stage:

- **Issues:** Bug reports and feature requests are appreciated
- **Pull Requests:** Please discuss larger changes in issues first
- **Documentation:** Help improve examples and guides

See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

---

## ๐Ÿ“ License

MIT License - see [LICENSE](LICENSE) file for details.

---

## ๐Ÿ”— Links

- **Homepage:** [creo-framework.dev](https://creo-framework.dev)
- **NPM Package:** [@creo-framework/creo](https://npmjs.com/package/@creo-framework/creo)
- **GitHub:** [codedgar/creo](https://github.com/codedgar/creo)
- **Discussions:** [GitHub Discussions](https://github.com/codedgar/creo/discussions)