Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/KennyOliver/neumorphia.css

Modern & neumorphic web elements! :art: :package:
https://github.com/KennyOliver/neumorphia.css

css css-framework css-library designer html modern modern-ui neumorphia neumorphia-css neumorphic neumorphic-ui neumorphism neumorphism-ui styling unique website-design

Last synced: 3 months ago
JSON representation

Modern & neumorphic web elements! :art: :package:

Awesome Lists containing this project

README

        

# neumorphia.css :art: :package:

![CodeFactor](https://www.codefactor.io/repository/github/KennyOliver/neumorphia.css/badge?style=for-the-badge)
![Latest SemVer](https://img.shields.io/github/v/tag/KennyOliver/neumorphia.css?label=version&sort=semver&style=for-the-badge)
![Repo Size](https://img.shields.io/github/repo-size/KennyOliver/neumorphia.css?style=for-the-badge)
![Total Lines](https://img.shields.io/tokei/lines/github/KennyOliver/neumorphia.css?style=for-the-badge)

**Make websites elements modern & beautiful with neumorphia.css!**

Compatible with FontAwesome!

[![Website Link](https://img.shields.io/badge/See%20A%20Demo-252525?style=for-the-badge&logo=safari&logoColor=white)](https://kennyoliver.github.io/neumorphia.css/)
[![neumorphia.css](https://img.shields.io/badge/Get%20neumorphia.css-75D2AF?style=for-the-badge&logo=css3&logoColor=252525)](https://kennyoliver.github.io/neumorphia.css/neumorphia.css)

## :package: Dynamic Installation & Updating:
Use this code in the header of your HTML file - neumorphia.css will be automatically updated without your intervention!
```html

```
> #### :chains: To use a specific version:
> ```html
>
> ```

---

## :art: How to use neumorphia.css
This section will go over how to incorporate elements of neumorphia.css in your HTML file.
Make sure to refer back to this when you first begin using neumorphia.css; these instructions may change!

> ### :warning: Quick Heads-Up!
> * **A light background (e.g. white) is not compatible!**
> * Elements are made from **divs**, apart from "hr-bar"
> * **"hr-bar"** is an **exception** to the guidelines for neumorphia.css
> * Instructions will be provided of how to structure your HTML code using containers provided by neumorphia.css

---

### Structuring your Code with "Containers"
neumorphia.css provides a smooth experience if you use "containers".
There a 2 provided: `"chunk"` and `"group"`.

#### "chunk"
Use "chunk" as a container for encapsulating a section of HTML that uses neumorphia.css
`"chunk"` creates a row.
`"chunk"` isn't an element, and therefore does not need the main `"neu"` class.
```html


```

#### "group"
Use `"group"` as a container for encapsulating groups of neumorphia.css elements.
`"group"` will automatically position itself when you have many `"group"`s in the same `"chunk"`
```html





```

> `"group"` can also be used within neumorphia.css elements to help structure their contents or their children elements.
> For example, grouping together 4 buttons (`"squircle"`/`"circle"`) in a 2x2 arrangement.

---

### Elements

```markdown
____ Represents a style
~~~~ Represents an animation
---- Represents an element
```

#### Styling your elements
> **Give all elements the main `"neu"` class.**
```html


```
##### Helper Classes for Styling (mandatory)
:warning: Your elements will not be displayed without one of these!

`flat` | `convex` | `concave` | `inset` | `outset`

Put one of the 5 styles in the gap
```html


```

> Note: underscores represent a style helper class

---

#### "hr-bar"
* `"hr-bar"` is the only exception of elements; but it's very simple to use
* `"neu"` is not needed
* Place it wherever: between `"chunk"`s, `"group"`s, elements, etc.

```html



```

#### "squircle" & "circle"
* Basic buttons
* Expect **1** character (or _FontAwesome_ icon) as the content
* Can be used in `"card"`

_Don't forget the styles!_
```html

CONTENT

CONTENT



```

**Recommended styles:** `convex` | `concave`

**Recommended animation:** `shrink` | `grow`

**Tip:** pair `"convex shrink"` & `"concave grow"`

#### "pill"
* Can be used alone or inside "card"
* Expects at most **6** characters when inside "card"
* When used alone, adapts to size if it has more than **6** characters

```html


```

**Recommended styles:** `inset` | `outset`

#### "card"
* Like a container, but is an element
* Used for holding elements

**Use cases:** [profile card](#create-a-basic-profile-card) | [search bar](#create-a-search-bar)

#### "photo-card"
* Holds images with a small description

```html



CONTENT



```

**Recommended styling:** `"flat"`

**Recommended animation:** `"grow"` (for img)

#### "ring"
* Can contain up to four characters
* Height/width can be changed using inline CSS
* Content can be either text or image

```html

75%


```

> **:warning: "ring" doesn't support styling**
> **Note:** "ring" doesn't display a percentage as a progress bar; `"ring"` is simply a border

**Recommended animation:** grow

**Use cases:** profile picture | percentage ring | [profile trio](#create-a-profile-trio)

---

### Helper Classes for Animations (optional)
* Animate certain elements

`grow` | `shrink`

Animations always go before an element's class, but after a style.
```html

```

---

### Compound Elements

#### Create a basic profile card

```html


Kenny




```

#### Create a search bar

```html









```

#### Create a profile trio

```html










```

---
Kenny Oliver ©2021