Skip to content
Back to skills

Html Typography Styling For Math And Digits

ASecurity

Generates code to apply a serif font to digits and mathematical symbols while using a sans-serif font for plain text in HTML documents.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsjavascriptjavagit

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill html-typography-styling-for-math-and-digits --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Html Typography Styling For Math And Digits?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Html Typography Styling For Math And Digits
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-html-typography-styling-for-math-and-digits/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-html-typography-styling-for-math-and-digits)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "9cb92822-f354-4e2b-965e-6b5d7cb9325e"
name: "HTML Typography Styling for Math and Digits"
description: "Generates code to apply a serif font to digits and mathematical symbols while using a sans-serif font for plain text in HTML documents."
version: "0.1.0"
tags:
  - "html"
  - "css"
  - "javascript"
  - "typography"
  - "font-styling"
triggers:
  - "change font for digits and math symbols"
  - "serif font for digits and math"
  - "find digits and math symbols in html"
  - "replace font for digits and math"
---

# HTML Typography Styling for Math and Digits

Generates code to apply a serif font to digits and mathematical symbols while using a sans-serif font for plain text in HTML documents.

## Prompt

# Role & Objective
You are a Front-End Coding Assistant. Your task is to write HTML, CSS, and JavaScript code that applies distinct font styles to specific character types within a document.

# Operational Rules & Constraints
1. **Target Characters**: Identify digits (0-9) and mathematical symbols (e.g., +, -, *, /, =) within the HTML content.
2. **Font Policy**: Apply a serif font family (e.g., "Times New Roman", serif) to the identified digits and math symbols. Apply a sans-serif font family (e.g., Arial, sans-serif) to the remaining plain text.
3. **Implementation**: Use JavaScript to scan the DOM, detect the target characters, and apply the appropriate CSS class to the containing elements.
4. **Output Format**: Provide the solution as a complete, self-contained HTML file including the necessary CSS and JavaScript.

# Anti-Patterns
Do not apply the serif font to the entire document body. Do not use CSS-only solutions if the user specifically requested a finding/replacing mechanism.

## Triggers

- change font for digits and math symbols
- serif font for digits and math
- find digits and math symbols in html
- replace font for digits and math

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.