-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: cleanup code and start the mastercss rewrite remove a bunch of old files and switch the home page to mastercss. Other pages will be converted soon:tm: * wip: second iteration of mastercss rewrite * wip: clean up a lot of things and adjust sizing of some elements * feat: new blog post + refactor i18n AGAIN * fix: fix some code linting and other issues * chore: force updated deps * chore: update more deps * fix: fix mastercss issues * fix: fix various issues and update deps * fix: optimise icons and fix butter chicken css * test: disable mastercss and see webperf results * fix: reenable mastercss and fix some image opt * styling: adjust some responsive styling * styling: move font loading directly to root layout * styling: move fonts back into a css file * styling: fix styling on the wobbler post * styling: fix various styling issues and use more semantic html * chore: remove languagePicker.svelte * feat: light mode * chore: update deps
- Loading branch information
Showing
63 changed files
with
8,667 additions
and
8,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
use flake | ||
use flake . --impure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
{ | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
inputs.napalm.url = "github:nix-community/napalm"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
inputs.treefmt-nix.url = "github:numtide/treefmt-nix"; | ||
inputs.napalm.inputs.nixpkgs.follows = "nixpkgs"; | ||
|
||
outputs = { | ||
self, | ||
nixpkgs, | ||
napalm, | ||
flake-utils, | ||
treefmt-nix, | ||
}: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix; | ||
in { | ||
formatter = treefmtEval.config.build.wrapper; | ||
|
||
packages = rec { | ||
website = napalm.legacyPackages."${system}".buildPackage ./. {}; | ||
default = website; | ||
}; | ||
|
||
apps = rec { | ||
website = flake-utils.lib.mkApp {drv = self.packages.${system}.website;}; | ||
default = website; | ||
}; | ||
|
||
checks = { | ||
formatting = treefmtEval.config.build.check self; | ||
}; | ||
|
||
devShells.default = pkgs.mkShell { | ||
nativeBuildInputs = with pkgs; [nil nodejs alejandra nodePackages.svelte-language-server nodePackages.typescript-language-server marksman]; | ||
devShells.default = pkgs.mkShell rec { | ||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; | ||
nativeBuildInputs = with pkgs; [ | ||
nil | ||
nodejs | ||
alejandra | ||
(nodePackages.svelte-language-server.overrideAttrs (old: let | ||
runtimeLibs = lib.makeLibraryPath [ | ||
stdenv.cc.cc.lib | ||
]; | ||
in { | ||
nativeBuildInputs = [ | ||
autoPatchelfHook | ||
makeWrapper | ||
]; | ||
buildInptus = runtimeLibs; | ||
preFixup = '' | ||
wrapProgram "$out/bin/svelteserver" --prefix LD_LIBRARY_PATH : ${runtimeLibs} | ||
''; | ||
} | ||
)) | ||
nodePackages.typescript-language-server marksman pkgs.stdenv.cc.cc.lib]; | ||
}; | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import type { Config } from '@master/css'; | ||
|
||
export default { | ||
animations: {}, | ||
functions: {}, | ||
modes: { | ||
dark: 'media', | ||
light: 'media' | ||
}, | ||
queries: {}, | ||
rules: {}, | ||
selectors: {}, | ||
styles: {}, | ||
variables: { | ||
// surfaces | ||
base: { | ||
'@light': 'oklch(90% 0.03 284)', | ||
'@dark': 'oklch(13% 0.03 284)' | ||
}, | ||
surface: { | ||
'@light': 'oklch(85% 0.05 284)', | ||
'@dark': 'oklch(15% 0.05 284)' | ||
}, | ||
overlay: { | ||
'@light': 'oklch(95% 0.05 284)', | ||
'@dark': 'oklch(20% 0.05 284)' | ||
}, | ||
// accents | ||
blue: { | ||
'@light': 'oklch(77% 0.2 240)', | ||
'@dark': 'oklch(77% 0.2 240)' | ||
}, | ||
green: { | ||
'@light': 'oklch(0.77 0.2 152)', | ||
'@dark': 'oklch(0.77 0.2 152)' | ||
}, | ||
mauve: { | ||
'@light': 'oklch(0.77 0.2 284)', | ||
'@dark': 'oklch(0.77 0.2 284)' | ||
}, | ||
orange: { | ||
'@light': 'oklch(0.77 0.2 83)', | ||
'@dark': 'oklch(0.77 0.2 83)' | ||
}, | ||
primary: { | ||
'@light': 'oklch(65% 0.2 284)', | ||
'@dark': 'oklch(35% 0.2 284)' | ||
}, | ||
red: { | ||
'@light': 'oklch(0.62 0.2 27)', | ||
'@dark': 'oklch(0.62 0.2 27)' | ||
}, | ||
secondary: { | ||
'@light': 'oklch(60% 0.2 240)', | ||
'@dark': 'oklch(77% 0.2 240)' | ||
}, | ||
subtle: { | ||
'@light': 'oklch(0.3 0.04 284)', | ||
'@dark': 'oklch(0.3 0.04 284)' | ||
}, | ||
teal: { | ||
'@light': 'oklch(0.77 0.2 190)', | ||
'@dark': 'oklch(0.77 0.2 190)' | ||
}, | ||
text: { | ||
base: { | ||
'@light': 'oklch(20% 0.03 284)', | ||
'@dark': 'oklch(88% 0.03 284)' | ||
}, | ||
surface: { | ||
'@light': 'oklch(18% 0.05 284)', | ||
'@dark': 'oklch(90% 0.05 284)' | ||
}, | ||
overlay: { | ||
'@light': 'oklch(15% 0.07 284)', | ||
'@dark': 'oklch(94% 0.07 284)' | ||
}, | ||
primary: { | ||
'@light': 'oklch(55% 0.3 284)', | ||
'@dark': 'oklch(77% 0.2 284)' | ||
}, | ||
} | ||
} | ||
} satisfies Config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.