Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2025 Abhimanyu Rana @planetabhi
Copyright (c) 2025 Method Black Studio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# New UI Foundations

[Getting started guide](https://new-ui.com/docs/getting-started/installation) ٩( ᐕ)و
#### What is New UI?
New UI is a modern, semantic UI framework for building beautiful, accessible websites and apps. It gives you everything you need—foundations, components, theming, and smart utilities—designed to grow with you, from first launch to millions of users. Thoughtfully made for makers, small teams, and anyone who cares about great design.

#### Install
To set up the project, open your terminal and run the following command:

```
npm i -D @new-ui/foundations
```

<strong>Note:</strong> This command installs all New UI foundation packages, which include reset, colors, effects, spacings, and typography. If you need to install only specific packages, refer to the foundations documentation for instructions.

#### Import
Import the New UI foundations by adding the following line at the top of your SCSS file:

```scss
@use '@new-ui/foundations'; // Use `@import` for CSS
```

#### Set the theme
Set the theme by adding the `data-new-ui-theme` attribute to your HTML wrapper element, for example:

```html
<html data-new-ui-theme="light">
```

|---
| Available themes | Value
|-|:-|:-
| Light (Default) | `light`
| Light warm | `light--warm`
| Light cold | `light--cold`
| Dark (Default) | `dark`
| Dark warm | `dark--warm`
| Dark cold | `dark--cold`
|---


#### Usage guide
- All classes associated with the New UI are prefixed with a global namespace followed by a hyphen: `nu-`
- In addition to a global namespace, we added prefixes to each class to make it more apparent what job that class is doing using BEM syntax.
- `c-` for UI components.
- `l-` for layout-related styles.
- `u-` for utilities.
- `is-` and `has-` for state-based classes.
- `js-` for targeting JavaScript-specific functionality.
2 changes: 1 addition & 1 deletion dist/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.css.map

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"name": "@new-ui/foundations",
"version": "0.2.3",
"version": "0.2.4",
"description": "New UI Foundations",
"source": "src/index.scss",
"main": "dist/index.css",
"targets": {
"main": false
},
"files": [
"dist/",
"src/",
"README.md",
"LICENSE"
],
"scripts": {
"watch": "parcel watch",
"build": "parcel build"
Expand All @@ -18,17 +24,14 @@
"keywords": [
"foundations",
"typography",
"colors",
"spacings",
"responsive",
"type",
"type-styles",
"modular",
"type",
"tokens",
"desktop",
"mobile",
"colors",
"spacings",
"spacing-blocks",
"reset",
"new"
],
Expand Down
2 changes: 2 additions & 0 deletions packages/colors/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.parcel-cache/
22 changes: 22 additions & 0 deletions packages/colors/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2025 Abhimanyu Rana @planetabhi
Copyright (c) 2025 Method Black Studio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
38 changes: 38 additions & 0 deletions packages/colors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# New UI Colors

## Install
Install New UI Colors from your terminal via npm.

```
npm i -D @new-ui/colors
```

To get started quickly, you can use the CDN files.

```html
<!-- Place this at the html head -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@new-ui/colors@latest/dist/index.css">
```

## Usage

```scss
// Place this at the top of your SCSS/CSS file
@use "@new-ui/colors"; // Use `@import` for CSS
```

```html
<!-- Add this attribute to html wrapper -->
<html data-new-ui-theme="light">
```

### Available themes
- light
- light--warm
- light--cold
- dark
- dark--warm
- dark--cold

## Guides
- [Read our colors guide](https://new-ui.com/docs/foundations/colors)
2 changes: 2 additions & 0 deletions packages/colors/dist/index.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/colors/dist/index.css.map

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions packages/colors/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@new-ui/colors",
"version": "2.0.1",
"description": "New UI colors.",
"source": "src/index.scss",
"main": "dist/index.css",
"targets": {
"main": false
},
"files": [
"dist/",
"src/",
"README.md",
"LICENSE"
],
"scripts": {
"watch": "parcel watch",
"build": "parcel build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NewDesignFile/foundations.git"
},
"keywords": [
"colors",
"color-palette",
"themes",
"tokens",
"design-system",
"color-system"
],
"author": "@planetabhi",
"license": "MIT",
"bugs": {
"url": "https://github.com/NewDesignFile/foundations/issues"
},
"homepage": "https://github.com/NewDesignFile/foundations#readme",
"devDependencies": {
"@parcel/transformer-sass": "^2.14.4",
"autoprefixer": "^10.4.21",
"parcel": "^2.14.4",
"caniuse-lite": "^1.0.30001715"
}
}
3 changes: 3 additions & 0 deletions packages/colors/parcel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require("autoprefixer")],
};
Loading