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
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# smarphy
# smarpy

smartupcorp web design
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smartupcorp/smarpy/blob/main/LICENSE)
[![NPM Version](https://img.shields.io/npm/v/@smartupcorp/smarpy)](https://www.npmjs.com/package/@smartupcorp/smarpy)
[![npm downloads](https://img.shields.io/npm/dm/@smartupcorp/smarpy)](https://www.npmjs.com/package/@smartupcorp/smarpy)

[![NPM](https://nodei.co/npm/@smartupcorp/smarpy.png)](https://nodei.co/npm/@smartupcorp/smarpy/)

## Overview

smarpy is an open-source web design sass library.

It uses `oklch()` to declare color palette.

If you want to use in React Project, you can use [react-smarpy](https://github.com/smartupcorp/react-smarpy).

## Installation

Expand All @@ -9,3 +21,25 @@ smartupcorp web design
```node
npm install @smartupcorp/smarpy
```

### Use in CSS

#### From CDN

```html
<link
rel="stylesheet"
type="text/css"
media="all"
href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy.min.css"
/>
```

```html
<link
rel="stylesheet"
type="text/css"
media="all"
href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy-utilities.min.css"
/>
```
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@
<div class="modal">
<div class="modal-content">
<div class="container">
<div class="my-1rem">
<div class="p-1rem">
<div class="message">
<div class="message-header">.message</div>
<div class="message-body">
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smartupcorp/smarpy",
"version": "0.0.1",
"version": "0.0.2",
"description": "smartupcorp web design library written by scss.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/sass/components/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
background-color: oklch(var(--#{variables.$prefix}color-default-back-oklch) / 0.75);
display: none;
flex-direction: column;
height: 100vh;
height: 100%;
justify-content: center;
left: 0;
overflow: hidden;
position: fixed;
top: 0;
width: 100vw;
width: 100%;
z-index: var(--#{variables.$prefix}z-index-modal);
&.is-active {
display: flex;
Expand Down