Skip to content

Commit

Permalink
Publish 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meduzen committed Aug 15, 2019
1 parent b808484 commit 2d6a7f9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#HSL_colors


# hsl.scss

[HSL colors](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#HSL_colors) [are awesome](https://www.sarasoueidan.com/blog/hex-rgb-to-hsl/). Unfortunately, the [SASS `hsl()` and `hsla()` functions](https://sass-lang.com/documentation/functions/color#hsl) converts the colors to RGB/RGBA format.
Expand All @@ -14,7 +11,7 @@ _hsl.scss_ replaces the two SASS functions by two others, preserving HSL(A) colo

## Usage

Write colors:
Write regular CSS, the syntax is exactly the same:
```scss
:root {
color: hsl(15deg, 100%, 50%);
Expand All @@ -27,3 +24,5 @@ Write colors:
$transparent-flashy-pink: hsla(15deg 100% 50% / .7); // opacity after a slash
}
```

There’s currently no test enforcing the validity of what is passed to `hsl()` and `hsla()`.
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "hsl.scss",
"version": "1.0.0",
"description": "SCSS hsl() and hsla() functions outputting hsl() and hsla() instead of being converted to rgb() and rgba().",
"main": "src/functions/hsl.scss",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"css",
"colors",
"hsl",
"hsla",
"sass",
"scss",
"function"
],
"homepage": "https://github.com/meduzen/true-hsl.scss",
"author": "Mehdi Merah <hi@mehdi.cc>",
"license": "WTFPL",
"repository": "github:meduzen/true-hsl.scss.git",
"bugs": {
"url": "https://github.com/meduzen/true-hsl.scss/issues"
}
}

0 comments on commit 2d6a7f9

Please sign in to comment.