
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
lit-weather
Advanced tools
Lit powered weather forecast web component, leveraging the OpenWeatherMap API. It's customizable with tailwindcss, lightweight, and shadow dom free.
Lit powered weather forecast web component, leveraging the OpenWeatherMap API. It's customizable with tailwindcss, lightweight, and shadow dom free. Replaces paper-weather
pnpm i -S lit-weather
import 'lit-weather';
<lit-weather api-key="API_KEY" query="ZIP_CODE_OR_CITY" />;
<script type="module" src="lit-weather.js" />
<lit-weather api-key="API_KEY" query="ZIP_CODE_OR_CITY" />;
Shadow root is turned off, styles are accessible just like any other html element. This is done so that you can style the component to your liking and we can use tailwindcss without shipping any css. We provide classes for each element in the component.
If you do not overwrite the styles and want to use the default tailwind classes, you must either import the dist/tw.css
file or include the dist/dist/src/LitWeather.js
in your tw configs content array.
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['node_modules/lit-weather/dist/src/LitWeather.js'],
theme: {
extend: {},
},
plugins: [],
};
This should work in any framework that supports web components. If you have any issues, please open an issue.
FAQs
Lit powered weather forecast web component, leveraging the OpenWeatherMap API. It's customizable with tailwindcss, lightweight, and shadow dom free.
The npm package lit-weather receives a total of 8 weekly downloads. As such, lit-weather popularity was classified as not popular.
We found that lit-weather demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.