New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smelte

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smelte - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

postcss.config.js

8

CHANGELOG.md
# Smelte changelog
# 0.0.28
* Add transparent variant to all colors
* Give ripple elements transparent hover
* Fix outlined button hover
* Add class builder to snackbars
* Add position and color props to snackbar
* Expose transition props on snackbars
# 0.0.27

@@ -4,0 +12,0 @@ * Add alias plugin

9

package.json
{
"name": "smelte",
"description": "UI framework for Svelte using Tailwind CSS",
"version": "0.0.27",
"version": "0.0.28",
"scripts": {

@@ -25,4 +25,7 @@ "dev": "sapper dev -p 7777",

"dist",
"src",
"tailwind.config.js"
"src/utils",
"src/stores.js",
"src/components",
"tailwind.config.js",
"postcss.config.js"
],

@@ -29,0 +32,0 @@ "module": "dist/module.js",

@@ -17,9 +17,21 @@ // Color generation utility borrowed from

function transparent(color) {
return {
trans: tinycolor(color[50])
.toRgbString()
.replace(")", ", 0.7)")
};
}
const baseLight = tinycolor("#ffffff");
function buildPalette(hex) {
const baseLight = tinycolor("#ffffff");
const baseDark = multiply(tinycolor(hex).toRgb(), tinycolor(hex).toRgb());
const baseTriad = tinycolor(hex).tetrad();
const lightest = o(tinycolor.mix(baseLight, hex, 12), "50");
return {
...o(tinycolor.mix(baseLight, hex, 12), "50"),
...transparent(lightest),
...lightest,
...o(tinycolor.mix(baseLight, hex, 30), "100"),

@@ -26,0 +38,0 @@ ...o(tinycolor.mix(baseLight, hex, 50), "200"),

@@ -19,2 +19,3 @@ export const navMenu = [

{ to: "/components/tooltips", text: "Tooltips" },
{ to: "/components/treeviews", text: "Treeviews" },
{ to: "/examples/search-bar", text: "Search bar" },

@@ -21,0 +22,0 @@ { to: "/typography", text: "Typography" },

@@ -85,3 +85,4 @@ const {

"800": "#4e342e",
"900": "#3e2723"
"900": "#3e2723",
trans: "rgba(62,39,35,0.5)"
},

@@ -99,3 +100,4 @@

"800": "#424242",
"900": "#212121"
"900": "#212121",
trans: "rgba(250, 250, 250, 0.7)"
},

@@ -113,3 +115,4 @@

"800": "#37474f",
"900": "#263238"
"900": "#263238",
trans: "rgb(236,239,241,0.5)"
}

@@ -116,0 +119,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc