Re-add Tailwind CSS

This commit is contained in:
Oliver Davies 2021-06-30 08:00:00 +01:00
parent 0401e039de
commit fd37030d03
15 changed files with 10101 additions and 0 deletions

1
assets/css/base.pcss Normal file
View file

@ -0,0 +1 @@

View file

8
assets/css/tailwind.pcss Normal file
View file

@ -0,0 +1,8 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import './base.pcss';
@import './components.pcss';
@import './utilities.pcss';

View file

22
assets/js/app.js Normal file
View file

@ -0,0 +1,22 @@
import 'alpinejs'
import 'focus-visible'
import 'highlight.js/styles/github.css'
import 'styles/tailwind.pcss'
import bash from 'highlight.js/lib/languages/bash'
import hljs from 'highlight.js/lib/core'
import ini from 'highlight.js/lib/languages/ini'
import javascript from 'highlight.js/lib/languages/javascript'
import php from 'highlight.js/lib/languages/php'
import yaml from 'highlight.js/lib/languages/yaml'
hljs.registerLanguage('bash', bash);
hljs.registerLanguage('ini', ini);
hljs.registerLanguage('javascript', javascript);
hljs.registerLanguage('php', php);
hljs.registerLanguage('yaml', yaml);
document.addEventListener('DOMContentLoaded', event => {
document.querySelectorAll('pre code').forEach(block => {
hljs.highlightBlock(block)
})
})