Tailwind CSS and data attributes

This commit is contained in:
Oliver Davies 2025-08-05 15:41:31 +01:00
parent 32cc453505
commit dfee30e5e9
5 changed files with 139 additions and 0 deletions

42
tailwindcss/flake.nix Normal file
View file

@ -0,0 +1,42 @@
{
inputs = {
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [ inputs.devshell.flakeModule ];
perSystem =
{ pkgs, ... }:
{
devshells.default = {
packages = [
(pkgs.writeShellApplication {
name = "serve";
runtimeInputs = with pkgs; [
simple-http-server
tailwindcss_4
watchman
];
text = ''
simple-http-server --index --nocache "$@" & \
tailwindcss --output tailwind.css --watch & \
wait
'';
})
];
};
};
};
}