feat: color experiments and add flake
This commit is contained in:
parent
15db8bfd34
commit
84c1042296
4 changed files with 118 additions and 14 deletions
60
flake.lock
Normal file
60
flake.lock
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726560853,
|
||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1728072973,
|
||||
"narHash": "sha256-eM3jg3fwjq1tQTUyQmEE57WK3fZbFLsg96o0OCAxfSo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "17fd7e3eea125b9cef316e0f6dfd3db64b80561b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
44
flake.nix
Normal file
44
flake.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
description = "Nix flake to use indieweb static files as a theme for website deployment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
packages = rec {
|
||||
indiewebTheme = pkgs.stdenv.mkDerivation {
|
||||
pname = "indieweb-theme";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/themes/indieweb
|
||||
cp -r * $out/themes/indieweb
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Static files for the indieweb theme to be used in the website deployment";
|
||||
homepage = "https://your-homepage-url";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.yourname ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
defaultPackage.${system} = self.packages.${system}.indiewebTheme;
|
||||
|
||||
apps = rec {
|
||||
indiewebTheme = flake-utils.lib.mkApp { drv = self.packages.${system}.indiewebTheme; };
|
||||
default = indiewebTheme;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
|
@ -4,26 +4,26 @@ html {
|
|||
:root {
|
||||
--bgcolor: #f8f8f2;
|
||||
--fontcolor: #282a36;
|
||||
--linkcolor: #00e;
|
||||
--visitedcolor: #00e;
|
||||
--linkcolor: #9CFF00;
|
||||
--visitedcolor: #9CFF00;
|
||||
--precolor: #fff;
|
||||
--prebgcolor: #000;
|
||||
--alertbgcolor: white;
|
||||
--hrcolor: #00e;
|
||||
--hrcolor: #9CFF00;
|
||||
--blockquotecolor: white;
|
||||
--pcodecolor: #000;
|
||||
--sitetitlecolor: #00e;
|
||||
--sitetitlecolor: #9CFF00;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bgcolor: #282a36;
|
||||
--fontcolor: #f8f8f2;
|
||||
--linkcolor: #ff79c6;
|
||||
--visitedcolor: #ff79c6;
|
||||
--linkcolor: #9CFF00;
|
||||
--visitedcolor: #9CFF00;
|
||||
--precolor: #f8f8f2;
|
||||
--prebgcolor: #383838;
|
||||
--alertbgcolor: #44475a;
|
||||
--hrcolor: #f8f8f2;
|
||||
--hrcolor: #39FF13;
|
||||
--blockquotecolor: #44475a;
|
||||
--pcodecolor: #6272a4;
|
||||
--sitetitlecolor: #f1fa8c;
|
||||
|
@ -54,7 +54,7 @@ h1,
|
|||
h2,
|
||||
h3 {
|
||||
line-height: 1.2;
|
||||
color: #bd93f9;
|
||||
color: #39FF13;
|
||||
}
|
||||
h2 {
|
||||
padding-top: 15px;
|
||||
|
@ -92,7 +92,7 @@ article {
|
|||
width: 100%;
|
||||
}
|
||||
figcaption {
|
||||
color: #888;
|
||||
color: #9CFF00;
|
||||
font: 12px/1.5 monospace;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
10
theme.toml
10
theme.toml
|
@ -1,17 +1,17 @@
|
|||
name = "minindie"
|
||||
license = "MIT"
|
||||
licenselink = "https://git.sr.ht/~bacardi55/MinIndie/tree/main/item/LICENCE.md"
|
||||
licenselink = "https://code.252.no/tommy/minindie/src/commit/15db8bfd342ee9c648ab6201106c8ef63571b4cc/LICENSE.md"
|
||||
description = "Minimal Hugo theme for the indieweb."
|
||||
homepage = "https://sr.ht/~bacardi55/MinIndie"
|
||||
homepage = "https://code.252.no/tommy/minindie"
|
||||
tags = ["blog", "minimal", "monospace", "dark mode", "simple", "clean", "light", "responsive", "fast", "no-js", "no-tracking", "privacy", "indieweb"]
|
||||
features = ["blog", "privacy", "responsive", "fast", "indieweb"]
|
||||
min_version = "0.0.1"
|
||||
|
||||
[author]
|
||||
name = "bacardi55"
|
||||
homepage = "bacardi55.io"
|
||||
name = "code.252.no/tommy"
|
||||
homepage = "252.no"
|
||||
|
||||
[original]
|
||||
author = "Morph"
|
||||
author = "bacardi55"
|
||||
homepage = "https://morph.sh"
|
||||
repo = "https://github.com/colorchestra/smol"
|
||||
|
|
Loading…
Reference in a new issue