Simple Lens extension that modifies basic "Hello World" sample by using CSS-in-JS styling method with Emotion library.
Emotion is a library designed for writing css styles with JavaScript. It is one of the ways for styling your Lens extensions.
Please follow the instructions in the documentation for extension styling details.
mkdir -p ~/.k8slens/extensions
git clone https://github.com/lensapp/lens-extension-samples.git
ln -s $(pwd)/lens-extension-samples/styling-emotion-sample ~/.k8slens/extensions/styling-emotion-sample
To build the extension you can use make
or run the npm
commands manually:
cd lens-extension-samples/styling-emotion-sample
make build
OR
cd lens-extension-samples/styling-emotion-sample
npm install
npm run build
If you want to watch for any source code changes and automatically rebuild the extension you can use:
cd lens-extension-samples/styling-emotion-sample
npm run dev
Open Lens application and navigate to a cluster. You should see "Styling with Emotion" in a menu.
rm ~/.k8slens/extensions/styling-emotion-sample
Restart Lens application.